import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from 'src/common/entities/base';
import { ApiProperty } from '@nestjs/swagger';

@Entity('edu_professional', {
  comment: '专业表',
})
export class ProfessionalEntity extends BaseEntity {
  @PrimaryGeneratedColumn({ type: 'int', name: 'pro_id', comment: '专业ID' })
  public proId: number;

  @ApiProperty({ description: '专业名称' })
  @Column({ type: 'varchar', name: 'pro_name', length: 64, default:null, comment: '专业名称' })
  public proName: string;

  @ApiProperty({ description: '专业编码' })
  @Column({ type: 'varchar', name: 'pro_code', length: 64, default:null, comment: '专业编码' })
  public proCode: string;

  @ApiProperty({ description: '专业介绍' })
  @Column({ type: 'varchar', name: 'pro_introduce', length: 300, default:null, comment: '专业介绍' })
  public proIntroduce: string;

  @ApiProperty({ description: '专业负责人' })
  @Column({ type: 'varchar', name: 'pro_manager', length: 64, default:null, comment: '专业负责人' })
  public proManager: string;

  @ApiProperty({ description: '联系电话' })
  @Column({ type: 'varchar', name: 'pro_manager_phone', length: 64, default:null, comment: '联系电话' })
  public proManagerPhone: string;

  @ApiProperty({ description: '负责人介绍' })
  @Column({ type: 'varchar', name: 'pro_manager_intro', length: 64, default:null, comment: '负责人介绍' })
  public proManagerIntro: string;
}
